$blue1: #1890ff;

.drag-layout {
  position: relative;
  height: 804px;
  width: 1704px;
  overflow: auto;
  border: 2px solid burlywood;
  margin: 20px;

  z-index: 1;
  overflow: hidden;

  &-bg {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% / 10px 10px,
      linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% / 10px 10px;
  }
}

.drag-layout-assist-border {
  border: 2px dotted $blue1;
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  z-index: 0;
  //   display: none;
}

.active {
  display: inline-block;
}

.drag-point {
  position: absolute;
  width: 10px;
  height: 10px;
  font-size: 1px;
  background: #eee;
  border: 2px solid $blue1;
}

.point-lt {
  left: -5px;
  top: -5px;
  cursor: nw-resize;
}

.point-mt {
  left: 50%;
  top: -5px;
  margin-left: -5px;
  cursor: n-resize;
}

.point-rt {
  right: -5px;
  top: -5px;
  cursor: ne-resize;
}

.point-mr {
  top: 50%;
  margin-top: -5px;
  right: -5px;
  cursor: e-resize;
}

.point-rb {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

.point-mb {
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  cursor: s-resize;
}

.point-lb {
  left: -5px;
  bottom: -5px;
  cursor: sw-resize;
}

.point-ml {
  top: 50%;
  left: -5px;
  cursor: w-resize;
}

.drag-container {
  display: inline-flex;
  flex-direction: column;
  position: absolute;
  border: 2px dotted #bfbfbf;
  border-radius: 10px;
  text-align: center;
  cursor: move;
  user-select: none;
  background-color: #fff;

  //   transition: all 0.3s;
  // overflow: hidden;
  &:hover {
    border: 2px solid $blue1;
  }

  &-function {
    border-style: solid;
    background-image: linear-gradient(180deg, #FFFFFF 0%, #F0FEFF 100%);
  }

  &-name {
    text-align: center;
    background-color: #f5f8ff;
    line-height: 25px;
    font-size: 14px;
    height: 25px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px dotted #cfcfcf;
    color: #666666;
  }

  &-name-function {
    position: relative;
    margin: auto;
    border-bottom: 0;
    background-color: transparent;
  }

  &-item,
  &-child {
    position: absolute;
    border: 2px solid #cfd9f4;
    display: inline-block;
    text-align: center;
    padding-top: 10px;
    border-radius: 10px;
    box-shadow: 1px 1px 3px 0 #0056bb;
    cursor: move;
    user-select: none;
    background-color: #ffffff;
    // transition: all 0.1s ease;
  }

  &-item-rotate {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #1890ff;
    right: -20px;
    top: 0;
    cursor: pointer;
  }

  .drag-layout-assist {
    position: absolute;
  }

  .del {
    width: 20px;
    height: 20px;
    background-color: red;
    right: -20px;
    top: 30px;
  }

  .hide {
    width: 20px;
    height: 20px;
    background-color: green;
    right: -20px;
    top: 60px;
  }
}